package org.eiahe.hr.attendance.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.attendance.domain.MonthlyOvertimeStat;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 月度加班统计视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MonthlyOvertimeStat.class)
public class MonthlyOvertimeStatVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 统计ID
     */
    @ExcelProperty(value = "统计ID")
    private Long statId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    /**
     * 员工姓名
     */
    @ExcelProperty(value = "员工姓名")
    private String employeeName;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 年份
     */
    @ExcelProperty(value = "年份")
    private Integer year;

    /**
     * 月份
     */
    @ExcelProperty(value = "月份")
    private Integer month;

    /**
     * 总加班时长(分钟)
     */
    @ExcelProperty(value = "总加班时长(分钟)")
    private Integer totalMinutes;

    /**
     * 总加班时长(小时)
     */
    @ExcelProperty(value = "总加班时长(小时)")
    private Double totalOvertimeHours;

    /**
     * 工作日加班时长(分钟)
     */
    @ExcelProperty(value = "工作日加班时长(分钟)")
    private Integer workdayMinutes;

    /**
     * 工作日加班时长(小时)
     */
    @ExcelProperty(value = "工作日加班时长(小时)")
    private Double weekdayOvertimeHours;

    /**
     * 周末加班时长(分钟)
     */
    @ExcelProperty(value = "周末加班时长(分钟)")
    private Integer weekendMinutes;

    /**
     * 周末加班时长(小时)
     */
    @ExcelProperty(value = "周末加班时长(小时)")
    private Double weekendOvertimeHours;

    /**
     * 节假日加班时长(分钟)
     */
    @ExcelProperty(value = "节假日加班时长(分钟)")
    private Integer holidayMinutes;

    /**
     * 节假日加班时长(小时)
     */
    @ExcelProperty(value = "节假日加班时长(小时)")
    private Double holidayOvertimeHours;

    /**
     * 加班次数
     */
    @ExcelProperty(value = "加班次数")
    private Integer overtimeCount;

    /**
     * 状态(0正常 1异常)
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
